<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    table {
      border-collapse: collapse;
    }
    td,th {
      border: 1px solid red;
      white-space: nowrap;
    }
    .table-responsive {
      overflow: auto;
    }
  </style>
</head>
<body>
  <div class="table-responsive">
    <table>
      <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>学历</th>
        <th>性别</th>
        <th>日期</th>
      </tr>
      <tr>
        <td>1</td>
        <td>龚贤</td>
        <td>30</td>
        <td>本科</td>
        <td>男</td>
        <td>日期</td>
      </tr>
      <tr>
        <td>1</td>
        <td>龚贤</td>
        <td>30</td>
        <td>本科</td>
        <td>男</td>
        <td>日期</td>
      </tr>
    </table>
  </div>
</body>
</html>